from urllib import request
import ssl

class HtmlDownloader(object):
    def download(self, url):
        if url is None:
            return None
        context = ssl._create_unverified_context()
        response = request.urlopen(url, context=context)

        #if response.getCode() != 200:
        #    return None
        # if response.status_code != 200:
        #     return None

        return response.read()
